fix positioning URP 15 / Unity 2023.1 #1
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have no idea of shaders and applied your very beautiful looking grass.
Sadly in Unity 2023.1 / URP 15.0 the grass is rendered slightly besides the gameobject.
the further the gameobject is away from coordinates 0 0 0 the higher the offset is.
Somehow my change fixes that
Before:
![image](https://private-user-images.githubusercontent.com/51869140/259407829-5c769498-e0ad-41a6-aadb-151f7f6eb532.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4NDUzODYsIm5iZiI6MTcyMTg0NTA4NiwicGF0aCI6Ii81MTg2OTE0MC8yNTk0MDc4MjktNWM3Njk0OTgtZTBhZC00MWE2LWFhZGItMTUxZjdmNmViNTMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI0VDE4MTgwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyM2FjN2ZjMjgwYWFkNmRmMmZjZDQ3YTM0MWExY2E0ZmI3NzEyMzRiM2I0NjBjOGRiMDIzYWUyMmZhZDhlMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dP0oFvyRG3U_7JmzsyaG62nK1_i9aXpY3Xs-21MWkcM)
After:
![image](https://private-user-images.githubusercontent.com/51869140/259407699-3000ad58-3357-4407-9918-c88ef613f341.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4NDUzODYsIm5iZiI6MTcyMTg0NTA4NiwicGF0aCI6Ii81MTg2OTE0MC8yNTk0MDc2OTktMzAwMGFkNTgtMzM1Ny00NDA3LTk5MTgtYzg4ZWY2MTNmMzQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI0VDE4MTgwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIzODU0YzBlZDA2YjIwNDNjMzY4NWZkZTRmZWFiOWZlNzhhMzk0MDRhODg5MDJmNWNmZDg3NGRlZDRjZTA3Y2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.--bcpB1roRVwTPZofkmKaiW6TSBVQeGCLGciDTFjE9s)